﻿
namespace Huirui.Cavan.Presentation.Seedwork
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.Contracts;
    using System.Linq;

    /// <summary>
    ///     The accurate list of datasources needed for MasterPage
    /// </summary>
    public class MasterModel : CoreModel, IMasterModel
    {

        public ICurrentUserModel CurrentUserModel { get; set; }

        /// <summary>
        ///     Current Controller name
        /// </summary>
        public virtual string ControllerName { get; set; }

        /// <summary>
        ///     Current Action name of current Controller
        /// </summary>
        public virtual string CurrentAction { get; set; }

        public MasterModel()
        {
            if (null == this.CurrentUserModel)
            {
                this.CurrentUserModel = new CurrentUserModel();
            }
        }
    }
}